﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Industry.Services.BlockOffset.Dto.Input;
using ZhonTai.Industry.Services.BlockOffset.Dto.Output;

namespace ZhonTai.Industry.Services.BlockOffset
{
    public interface IBlockOffsetService
    {
        /// <summary>
        /// 查询
        /// </summary>
        Task<BlockOffsetGetOutput> GetAsync(long id);

        /// <summary>
        /// 获取偏移量ID集合
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<long[]> GetOffsetIdsAsync(BlockOffsetBlockIdInput input);

        /// <summary>
        /// 分页查询
        /// </summary>
        Task<PageOutput<BlockOffsetGetPageOutput>> GetPageAsync(PageInput<BlockOffsetGetPageInput> input);

        /// <summary>
        /// 列表查询
        /// </summary>
        Task<IEnumerable<BlockOffsetGetListOutput>> GetListAsync(BlockOffsetGetListInput input);

        /// <summary>
        /// 新增
        /// </summary>
        Task<long> AddAsync(BlockOffsetAddInput input);

        /// <summary>
        /// 新增多条
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<long> AddMoreAsync(BlockOffsetsAddInput input);

        /// <summary>
        /// 编辑
        /// </summary>
        Task UpdateAsync(BlockOffsetUpdateInput input);

        /// <summary>
        /// 删除
        /// </summary>
        Task<bool> DeleteAsync(long id);

        /// <summary>
        /// 软删除
        /// </summary>
        Task<bool> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        Task<bool> BatchSoftDeleteAsync(long[] ids);
    }
}